import request from '../utils/request';

// get请求示例
export const fetchData = query => {
    return request({
        url: '/table.json',
        method: 'get',
        params: query
    });
};

// 登录接口 post请求
export const doLogin = query => {
    return request({
        url: '/doLogin',
        method: 'post',
        data: query
    });
};